package com.hrt.day04.implicitdemo

object Implicit7 {

    implicit val a: Int = 10
    
    def main(args: Array[String]): Unit = {
        val b: Int = implicitly[Int]  // 自己找对应的隐式值
        println(b)

        foo
        foo(implicitly[Int])
    }
    
    def foo(implicit a:Int ) = println(a)
}

/**
从冥界召唤隐式值
 */
